<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
	<title>教学班序号</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
	<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
    <script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
	<script type="text/JavaScript">
       $(function(){
           $('#form1').ajaxForm({
               //beforeSubmit:  function(){alert("before");},  // pre-submit callback
               success:       complete,  // post-submit callback
               error:function(){alert("error");},
               dataType: 'json'
           });
           
           function complete(data){
               if (data.status==1)
               {
               	window.location='__URL__/classdetail';
               }else{
                   $('#result').html(data.info).show();
               }
           }
       });
       </script>
</head>

<body >
	<!-- layout::Auth:header::0 -->
    	<div class="container-fluid">
     	 <div class="row-fluid">
    		<!-- layout::Auth:leftmenu::0 -->
            	<div class="span8">
                  <div class="hero-unit">
                    <h1>教学班编辑</h1>
                    <p style="font-size:12px">当前位置：
                    <a href='__APP__/index/index' class="nowpositionhref">主页</a>>
                    <a href='__URL__/index' class="nowpositionhref">后台管理</a>>
                    <a href='__URL__/classdetail' class="nowpositionhref">教学班管理</a>>
                    <a href="" class="nowpositionhref">教学班编辑</a>
                    </p>
                  </div>
                  <form id='form1' method="post" action="__URL__/classupdate" >
		<input type="hidden" name="id1" value=<?php echo ($vo["id"]); ?>>
        <div id='result'></div>	
			<table >
            	<thead>
                	<tr>
                    	<th>
                        	<input class="input-xxlarge disable"  type="text" id="disabledInput" disabled value="教学班名称：<?php echo ($vo["cname"]); ?>">
                        </th>
                    </tr>
                    <tr>
                    	 <th>
                        	<input type="text" name="id" placeholder="修改教学班序号:<?php echo ($vo["id"]); ?>" class="input-xxlarge">
                        </th>
                    </tr>
                    <tr>
                    	<th class="pull-left">
                        	<input type='checkbox' name='public' value="1">是否为公共课
                        </th>
                    </tr>
                    <tr>
                    	<th class="pull-right">
                        	<input type="submit" value="更新" class="btn btn-success">
                        </th>
                    </tr>
                </thead>
            </table>
		</form>
       </div>
      </div>
     </div>
</body>
</html>